package cn.paraview.wechat.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * http://www.paraview.cn/
 * todo:
 *
 * @Author: lijishun
 * @Date: 2020/5/17 20:23
 */
@Component
public class ConfigBean {

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){

        return new RestTemplate(new OkHttp3ClientHttpRequestFactory());
    }
}
